package org.dxy.infrastructure.persistent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dxy.infrastructure.entity.WorkshopEntity;

import java.util.List;

/**
 * 车间持久化服务接口
 */
public interface WorkshopPersistentService extends IService<WorkshopEntity> {
    
    /**
     * 根据车间编码检查是否存在
     */
    boolean existsByWorkshopCode(String workshopCode);
    
    /**
     * 根据工厂ID查询车间列表
     */
    List<WorkshopEntity> getByFactoryId(Long factoryId);
}